<?php 
$show_validator = true;
include TMPL_PATH.'public/header.phtml';
?>
<script type="text/javascript">
<!--
	$(function(){
	$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
 	$("#link_url").formValidator({onshow:"请输入网站网址",onfocus:"请输入网站网址"}).inputValidator({min:1,onerror:"请输入网站网址"}).regexValidator({regexp:"^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&]*([^<>])*$",onerror:"格式应该为 http://www.cjli.org/"})
	 
	})
//-->
</script>

<div class="pad_10">
<form action="__SELF__" method="post" name="myform" id="myform" enctype="multipart/form-data">
<table cellpadding="2" cellspacing="1" class="table_form" width="100%">
	<tr>
		<th width="100">广告名称：</th>
		<td><input type="text" name="alt" id="alt"	size="30" class="input-text"></td>
	</tr>
	<tr>
		<th width="100">广告网址：</th>
		<td><input type="text" name="url" id="link_url" size="30" value="" class="input-text"></td>
	</tr>
	<tr>
		<th width="100">pc端图片：</th>
		<td><input type="file" name="upimage" id="upimage" value="" size="50" class="" /></td>
	</tr>
    <tr>
        <th width="100">移动端图片：</th>
        <td><input type="file" name="upimagem" id="upimagem" value="" size="50" class="" /></td>
    </tr>
	<tr>
	  <th>排序：</th>
	  <td><input type="text" name="listorder" class="input-text" size="5" value="0"/></td>
	</tr>
	<tr>
		<th>显示：</th>
		<td><input name="visible" type="radio" value="1" checked>&nbsp;是&nbsp;&nbsp;
		<input 	name="visible" type="radio" value="0">&nbsp;否</td>
	</tr>
</table>
<div class="bk15"></div>
    <input name="dosubmit" type="submit" class="dialog" value="提交" id="dosubmit" />
</form>
</div>
</body>
</html> 